﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Teaching.aspx.cs" Inherits="XHCTMS.View.Teach" %>

<!-- 
 * html5 admin
 *
 * is double licensed under the MIT and Creative Commons Attribution 3.0 Unported License.
 * - https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt
 * 
 * - http://creativecommons.org/licenses/by/3.0/
-->
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" class="no-js">
<!--<![endif]-->
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Html5 Admin Template for Backend - Fake Dashboard</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/style.css?v=2">
    <!-- fluid 960 -->
    <link rel="stylesheet" type="text/css" href="css/text.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/layout.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="css/grid.css" media="screen" />
    <!-- superfish menu -->
    <link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
    <!-- tags css -->
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!-- treeview css -->
    <link rel="stylesheet" href="css/jquery.treeview.css">
    <!-- dataTable css -->
    <link rel="stylesheet" href="css/demo_table_jui.css">
    <!-- fluid GS -->
    <link rel="stylesheet" type="text/css" href="css/fluid.gs.css" media="screen" />
    <!--[if lt IE 8 ]>
	<link rel="stylesheet" type="text/css" href="css/fluid.gs.lt_ie8.css" media="screen" />
	<![endif]-->
    <!-- //jqueryUI css -->
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
    <!-- //jquery -->
    <!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
    <script src="js/libs/jquery-1.5.1.min.js"></script>
    <script>        !window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
    <!-- //jqueryUI -->
    <script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery-fluid16.js"></script>
    <script src="js/plugins.js"></script>
    <script src="js/script.js"></script>
    <!-- //xoxco tags plugin https://github.com/xoxco/jQuery-Tags-Input -->
    <script src="js/jquery.tagsinput.min.js"></script>
    <link rel="stylesheet" href="css/jquery.tagsinput.css">
    <!--[if lt IE 7 ]>
	<script src="js/libs/dd_belatedpng.js"></script>
	<script> DD_belatedPNG.fix('img, .png_bg');</script>
	<![endif]-->
    <!-- modernizr -->
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <!-- superfish menu and needed js for menu -->
    <script src="js/superfish.js"></script>
    <script src="js/supersubs.js"></script>
    <script src="js/hoverIntent.js"></script>
    <script src="js/libs/modernizr-1.7.min.js"></script>
    <script src="js/Teaching.js" type="text/javascript"></script>
    <style type="text/css">
        .txt
        {
            margin-left: 10px;
            width: 150px;
            margin-right: 20px;
            margin-top: 5px;
        }
        
        .dropdownlist
        {
            margin-left: 10px;
            width: 155px;
            height: 23px;
            margin-right: 20px;
            margin-top: 5px;
        }
        .dialog_link
        {
            padding: 0.4em 1em 0.4em 20px;
            position: relative;
            text-decoration: none;
        }
        .span-ui-icon
        {
            left: 0.2em;
            margin: -8px 5px 0 0;
            position: absolute;
            top: 50%;
        }
    </style>
    
</head>
<body>
    <form id="Form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="box">
        <h2>
            <a href="#" id="toggle-forms">授课信息</a>
        </h2>
        <div class="block" id="forms">
            <fieldset>
                <legend>信息</legend>
                <div>
                    <div style="width: 500px">
                        <label>
                            所授课程:</label>
                        <asp:TextBox ID="txtLesson" class="txt" runat="server"></asp:TextBox>
                        <label>
                            授课教师:</label>&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlTeacher" class="dropdownlist" runat="server">
                        </asp:DropDownList>
                        <br />
                        <label>
                            所授班级:</label>
                        <asp:DropDownList ID="ddlClass" class="dropdownlist" name="Class" runat="server">
                        </asp:DropDownList>
                        <label>
                            任务状态:
                        </label>
                        &nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlState" class="dropdownlist" name="State" runat="server">
                        </asp:DropDownList>
                        <br />
                        <br />
                        <div id="divAdd" class="six column">
                            <a href="#" id="dialog_link1" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                <span class=" span-ui-icon ui-icon ui-icon-circle-plus "></span>添加</a>
                        </div>
                        <div id="divSearch" class="six column">
                            <a href="#" id="A8" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                <span class=" span-ui-icon ui-icon ui-icon-search "></span>搜索</a>
                        </div>
                        <div id="divRevise" class="six column">
                            <a href="#" id="A9" class=" dialog_link ui-state-default ui-corner-some floatRight">
                                <span class=" span-ui-icon ui-icon ui-icon-arrowrefresh-1-e "></span>修改</a>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
    <div class="box">
        <h2>
            <a href="#" id="toggle-list">信息列表</a>
        </h2>
        <div class="block" id="list">
            <asp:Repeater ID="infolist" runat="server" OnItemCommand="infolist_ItemCommand">
                <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" class="display" onclick="javascript:GoSel(event);"
                        id="example">
                        <thead>
                            <tr>
                                <th>
                                    课程名
                                </th>
                                <th>
                                    授课教师
                                </th>
                                <th>
                                    所授班级
                                </th>
                                <th width="12%" style="text-align: center">
                                    授课任务状态
                                </th>
                                <th style="text-align: center">
                                    操作
                                </th>
                            </tr>
                        </thead>
                </HeaderTemplate>
                <ItemTemplate>
                    <tbody>
                        <tr class="odd gradeA">
                            <td style="display: none">
                                <asp:Label ID="tbxTeachingId" runat="server" Text='<%#Eval("teaching_id") %>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="tbxTeachingLesson" runat="server" Text='<%#Eval("teaching_lesson")%>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="tbxUserName" runat="server" Text='<%#Eval("user_name")%>'></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="tbxClassName" runat="server" Text='<%#Eval("class_name")%>'></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="tbxTeachingState" runat="server" Text='<%#Eval("teaching_strstate")%>'></asp:Label>
                            </td>
                            <td style="text-align: center">
                                <asp:LinkButton ID="lbtnRevise" Text="修改" CommandName="linkbtnRevise" CommandArgument='<%#Eval("teaching_id") %>'
                                    runat="server"></asp:LinkButton>
                                <asp:LinkButton ID="lbtnDelete" Text="结课" CommandName="linkbtnDelete" CommandArgument='<%#Eval("teaching_id") %>'
                                    runat="server"></asp:LinkButton>
                            </td>
                        </tr>
                    </tbody>
                </ItemTemplate>
                <FooterTemplate>
                    <tfoot>
                        <tr>
                            <th>
                                所授课程
                            </th>
                            <th>
                                授课教师
                            </th>
                            <th>
                                所授班级
                            </th>
                            <th width="12%" style="text-align: center">
                                授课任务状态
                            </th>
                            <th style="text-align: center">
                                操作
                            </th>
                        </tr>
                    </tfoot>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            
            <asp:DropDownList ID="ddlPageSize" class="dialog_link ui-state-default ui-corner-some floatRight"
                Width="85px" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>50</asp:ListItem>
                <asp:ListItem>100</asp:ListItem>
            </asp:DropDownList>
            <a id="a1" class=" dialog_link ui-state-default ui-corner-some floatRight">显示</a>
            <a id="aLast" href="#" class=" dialog_link ui-state-default ui-corner-some floatRight">尾页</a>
            <a id="aNext" href="#" class=" dialog_link ui-state-default ui-corner-some floatRight">下一页</a>
            <asp:DropDownList ID="ddlPage" class="dialog_link ui-state-default ui-corner-some floatRight"
                Width="85px" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlPage_SelectedIndexChanged">
            </asp:DropDownList>
            <a id="aPrevious" href="#" class=" dialog_link ui-state-default ui-corner-some  floatRight">上一页</a>
            <a id="aFisrt" href="#" class=" dialog_link ui-state-default ui-corner-some  floatRight">首页</a>
        </div>
    </div>
    <div id="dialogRevise" style="display: none" title="授课任务">
        <span id="spnRevise" style="color: Red">确定修改？</span>
    </div>
    <div id="dialogError" style="display: none;" title="授课任务">
        <span id="spnError" style="color: Red" runat="server">请填写完整!(状态不需要选择)</span>
    </div>
    <asp:Button ID="btnAdd" Style="display: none" runat="server" Text="Button" OnClick="btnAdd_Click" />
    <asp:Button ID="btnRevise" UseSubmitBehavior="false" Style="display: none" runat="server"
        Text="Button" OnClick="btnRevise_Click" />
    <asp:Button ID="btnSearch" Style="display: none" runat="server" Text="Button" OnClick="btnSearch_Click" />
    <asp:Button ID="btnPrevious" Style="display: none" runat="server" Text="Button" OnClick="btnPrevious_Click" />
    <asp:Button ID="btnNext" Style="display: none" runat="server" Text="Button" OnClick="btnNext_Click" />
    <asp:Button ID="btnFirst" Style="display: none" runat="server" Text="Button" OnClick="btnFirst_Click" />
    <asp:Button ID="btnLast" Style="display: none" runat="server" Text="Button" OnClick="btnLast_Click" />
    </form>
</body>
</html>
